import request from '@/utils/request'


/**
 * BU实际成本登录 分页查询
 * GET /buRealityCost/getList
 */
export function getList(query) {
  return request({
    url: '/api/admin/buRealityCost/getList',
    method: 'get',
    params: query
  })
}

/**
 * BU实际成本登录 批量删除
 */
export function deleteData(list) {
  return request({
    url: '/api/admin/buRealityCost/deleteData',
    method: 'post',
    data: list
  })
}

/**
 * BU实际成本登录 新增
 */
export function insertData(list) {
  return request({
    url: '/api/admin/buRealityCost/insertData',
    method: 'post',
    data: list
  })
}

/**
 * BU实际成本登录 批量更新
 */
export function updateData(list) {
  return request({
    url: '/api/admin/buRealityCost/updateData',
    method: 'post',
    data: list
  })
}

/**
 * 专案利润配置 分页获取
 */
export function queryList(query) {
  return request({
    url: '/api/admin/projectProfitShare/page',
    method: 'get',
    params: query
  })
}

/**
 * 专案利润配置 保存
 */
export function putObj(obj) {
  return request({
    url: '/api/admin/projectProfitShare/profitShareUpdate',
    method: 'post',
    data: obj
  })
}

/**
 * 专案利润配置 保存
 */
export function profitShare(obj) {
  return request({
    url: '/api/admin/projectProfitShare/profitShare',
    method: 'put',
    data: obj
  })
}

/**
 * 专案利润配置金额 保存
 */
export function proportion(obj) {
  return request({
    url: '/api/admin/profitShare/proportion',
    method: 'put',
    data: obj
  })
}

/**
 * 专案利润配置 删除
 */
export function delObj(list) {
  return request({
    url: '/api/admin/projectProfitShare/profitShareDelete',
    method: 'post',
    data: list
  })
}
